import { RouteRecordRaw } from 'vue-router';

const course: RouteRecordRaw[] = [
  {
    path: '/courselist',
    name: 'courselist',
    component: () => import('@/views/course/courselist.vue'),
    meta: {
      title: '课程管理',
    },
  },
  {
    path: '/courselist/addcourse',
    name: 'addcourse',
    component: () => import('@/views/course/add/addcourse.vue'),
    meta: {
      title: '添加课程',
    },
  },
  {
    path: '/courselist/addchapter',
    name: 'addchapter',
    component: () => import('@/views/course/add/addchapter.vue'),
    meta: {
      title: '添加课程',
    },
  },
  {
    path: '/courselist/detailscourse',
    name: 'detailscourse',
    component: () => import('@/views/course/details/course.vue'),
    meta: {
      title: '课程详情',
    },
  },
  {
    path: '/speciallist',
    name: 'speciallist',
    component: () => import('@/views/course/speciallist.vue'),
    meta: {
      title: '专题管理',
    },
  },
  {
    path: '/speciallist/addspecial',
    name: 'addspecial',
    component: () => import('@/views/course/add/addspecial.vue'),
    meta: {
      title: '添加专题',
    },
  },
  {
    path: '/speciallist/special',
    name: 'detailsspecial',
    component: () => import('@/views/course/details/special.vue'),
    meta: {
      title: '专题详情',
    },
  },
  {
    path: '/courseware',
    name: 'courseware',
    component: () => import('@/views/course/courseware.vue'),
    meta: {
      title: '课件管理',
    },
  },
  {
    path: '/courseware/addcourseware',
    name: 'addcourseware',
    component: () => import('@/views/course/add/addcourseware.vue'),
    meta: {
      title: '添加课件',
    },
  },
  {
    path: '/courseware/courseware',
    name: 'detailscourseware',
    component: () => import('@/views/course/details/courseware.vue'),
    meta: {
      title: '课件详情',
    },
  },
  {
    path: '/arrangecourses',
    name: 'arrangecourses',
    component: () => import('@/views/course/arrangecourses.vue'),
    meta: {
      title: '课程安排',
    },
  },
  {
    path: '/arrangecourses/addarrangecourses',
    name: 'addarrangecourses',
    component: () => import('@/views/course/add/arrangecourses.vue'),
    meta: {
      title: '安排课程',
    },
  },
  {
    path: '/arrangecourses/detailsarrangecourses',
    name: 'detailsarrangecourses',
    component: () => import('@/views/course/details/arrangecourses.vue'),
    meta: {
      title: '课程详情',
    },
  },
  {
    path: '/arrangespecial',
    name: 'arrangespecial',
    component: () => import('@/views/course/arrangespecial.vue'),
    meta: {
      title: '专题安排',
    },
  },
  {
    path: '/arrangespecial/addarrangespecial',
    name: 'addarrangespecial',
    component: () => import('@/views/course/add/arrangespecial.vue'),
    meta: {
      title: '安排专题',
    },
  },
  {
    path: '/arrangespecial/detailsarrangespecial',
    name: 'detailsarrangespecial',
    component: () => import('@/views/course/details/arrangespecial.vue'),
    meta: {
      title: '专题详情',
    },
  },
  {
    path: '/courseware/detailcoursewarereview',
    name: 'detailcoursewarereview',
    component: () => import('@/views/course/details/coursewarereview.vue'),
    meta: {
      title: '课件审核',
    },
  },
];

export default course;
